package com.run.motion.service;

import com.run.motion.entity.FoodDetailType;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author tyx-qchk
 * @date 2022/12/5 9:40
 */
public interface IFoodDetailTypeService {
    /**
     * 查询食物二级分类
     *
     * @param id 二级分类id
     * @return 食物二级分类
     */
    public FoodDetailType selectFoodDetailTypeById(String id);

    /**
     * 查询食物二级分类列表
     *
     * @return 食物二级分类集合
     */
    public List<FoodDetailType> selectFoodDetailTypeList();

    /**
     * 根据一级分类id查询食物二级分类列表
     *@param foodTypeId  一级级分类id
     * @return 食物二级分类集合
     */
    public List<FoodDetailType> selectFoodDetailTypeListByFoodTypeId(String foodTypeId);

    /**
     * 新增食物二级分类
     *
     * @param foodDetailType 食物二级分类
     * @return 结果
     */
    public int insertFoodDetailType(FoodDetailType foodDetailType);

    /**
     * 修改食物二级分类
     *
     * @param foodDetailType 食物二级分类
     * @return 结果
     */
    public int updateFoodDetailType(FoodDetailType foodDetailType);

    /**
     * 删除食物二级分类
     *
     * @param id 食物二级分类主键
     * @return 结果
     */
    public int deleteFoodDetailTypeById(String id);

    /**
     * 批量删除食物二级分类
     *
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteFoodDetailTypeByIds(String[] ids);
}
